{% extends "layout/main.html" %}
{% load i18n %}

{% block content %}
<h2>{{ sport_name }}</h2>
<p>{% trans "All fields are optional." %}</p>
<form method="POST" action=".">
{% for form in forms %}
  {{ form.as_p }}
{% endfor %}
<input type="submit" value="Add data" />
</form>

{% for data in charts_data %}
  {% if data.chart_url %}
  <h2>{{ data.name }}</h2>

    <img src="{{ data.chart_url }}"/>
  {% endif %}
{% endfor %}
{% endblock %}
